home *** CD-ROM | disk | FTP | other *** search
-
-
-
- rrrrmmmm((((1111)))) rrrrmmmm((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- _rrrr_mmmm, _rrrr_mmmm_dddd_iiii_rrrr - remove files or directories
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _rrrr_mmmm [_----_ffff] [_----_iiii] _f_i_l_e ...
- _rrrr_mmmm _----_rrrr [_----_ffff] [_----_iiii] _dddd_iiii_rrrr_nnnn_aaaa_mmmm_eeee . . . [_f_i_l_e . . .]
-
- _rrrr_mmmm_dddd_iiii_rrrr [_----_pppp] [_----_ssss] _dddd_iiii_rrrr_nnnn_aaaa_mmmm_eeee . . .
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _rrrr_mmmm removes the entries for one or more files from a directory. It does
- not remove .. and anything above target directory when invoked with an
- argument which ends in /.. It will print error messages in these cases.
- If the directory containing the file to be removed has the 'sticky' bit
- set (see _c_h_m_o_d(_2)) then in order to remove the file one of the following
- must be true:
-
- the user owns the file,
- the user owns the directory, or
- the user is the super-user.
-
- If the kernel tunable xpg4_sticky_bit is set to 0 the file will also be
- removable if it is writable by the user.
-
- If a file has no write permission and the standard input is a terminal,
- the full set of permissions (in octal) for the file are printed followed
- by a question mark. This is a prompt for confirmation. If the answer
- begins with _yyyy (for yes), the file is deleted, otherwise the file remains.
-
- If _f_i_l_e is a symbolic link, the link will be removed, but the file or
- directory to which it refers will not be deleted. A user does not need
- write permission on a symbolic link to remove it, provided they have
- write permissions in the directory.
-
- Note that if the standard input is not a terminal, the command will
- operate as if the _----_ffff option is in effect.
-
- Four options apply to _rrrr_mmmm:
-
- _----_ffff This option causes the removal of all files (whether write-protected
- or not) in a directory without prompting the user. In a write-
- protected directory, however, files are never removed (whatever
- their permissions are), but no messages are displayed. If the
- removal of a write-protected directory is attempted, this option
- will not suppress an error message. Any previous occurrences of the
- _----_iiii will be ignored.
-
- _----_rrrr This option causes the recursive removal of any directories and
- subdirectories in the argument list. The directory will be emptied
- of files and removed. Note that the user is normally prompted for
- removal of any write-protected files which the directory contains.
- The write-protected files are removed without prompting, however, if
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- rrrrmmmm((((1111)))) rrrrmmmm((((1111))))
-
-
-
- the _----_ffff option is used, or if the standard input is not a terminal
- and the _----_iiii option is not used.
- Symbolic links that are encountered with this option will not be
- traversed.
- If the removal of a non-empty, write-protected directory is
- attempted, the command will always fail (even if the _----_ffff option is
- used), resulting in an error message.
-
- _----_RRRR Same as _----_rrrr
-
- _----_iiii With this option, confirmation of removal of any file occurs
- interactively. Any previous occurrences of the _----_ffff option will be
- ignored.
-
- Two options apply to _rrrr_mmmm_dddd_iiii_rrrr:
-
- _----_pppp This option allows users to remove the directory _d_i_r_n_a_m_e and its
- parent directories which become empty. A message is printed on
- standard output about whether the whole path is removed or part of
- the path remains for some reason.
-
- _----_ssss This option is used to suppress the message printed on standard
- error when _----_pppp is in effect.
-
- FFFFIIIILLLLEEEESSSS
- _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_cccc_oooo_rrrr_eeee_...._aaaa_bbbb_iiii
- language-specific message file [See _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn (5).]
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _uuuu_nnnn_llll_iiii_nnnn_kkkk(2), _rrrr_mmmm_dddd_iiii_rrrr(2)
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- All messages are generally self-explanatory.
-
- It is forbidden to remove the files "_...." and "_...._...." in order to avoid the
- consequences of inadvertently doing something like the following:
- _rrrr_mmmm _----_rrrr _...._****
-
- Both _rrrr_mmmm and _rrrr_mmmm_dddd_iiii_rrrr return exit codes of 0 if all the specified directories
- are removed successfully. Otherwise, they return a non-zero exit code.
-
- NNNNOOOOTTTTEEEESSSS
- A _----_---- permits the user to mark explicitly the end of any command line
- options, allowing _rrrr_mmmm to recognize filename arguments that begin with a _----.
- As an aid to BSD migration, _rrrr_mmmm will accept _---- as a synonym for _----_----. This
- migration aid may disappear in a future release. If a _----_---- and a _---- both
- appear on the same command line, the second will be interpreted as a
- filename.
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-